package cl.whyem.testsutilityproject.sortingvector;

import java.text.MessageFormat;
import java.util.Collections;
import java.util.Comparator;
import java.util.Vector;
import javax.swing.table.DefaultTableModel;

public class CustomModel extends DefaultTableModel {

    @Override
    public Vector getDataVector() {
        Vector vector = super.getDataVector();
        Collections.sort(vector);

        DefaultTableModel model = new DefaultTableModel();
        model.getDataVector();
        
        Collections.sort(vector);
        return vector;
    }
    
    class Fomatter extends MessageFormat {

        public Fomatter(String pattern) {
            super(pattern);
        }
        
    }
    
    
}


